/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Simulation.Messages;

/**
 *
 * @author aking2
 */

    /*
     * Message Layout
     *  0.. 0   Simulator ID
     *  1.. 3   Padding 
     */  

public class StartSimulationMessage extends Message {
    
    public StartSimulationMessage(
      byte simulatorIdIn) {
        messageID   = Simulation.Messages.Message.MessageIdEnum.IOS_START_SIMULATING;
        messageData = new byte[MessageSize(messageID)];
        SetSimulatorId( simulatorIdIn );
    }  
    
    public StartSimulationMessage() {
        messageID   = Simulation.Messages.Message.MessageIdEnum.IOS_START_SIMULATING;
        messageData = new byte[MessageSize(messageID)];
    }      
    
    public StartSimulationMessage(Message msg) {
        this.messageID = msg.messageID;
        this.messageData = msg.messageData;
    }    
    
    public final void SetSimulatorId(byte s) {
        messageData[0] = s;     
    }                
    
    public final byte GetSimulatorId() {
        return messageData[0];
    }      
        
}

